Platform Explorer / Nuxeo Platform 2023.15

Operation Picture.Resize (Resize a picture)

Description

Use conversion service to resize a picture contained in a Document or a Blob
Operation id Picture.Resize
AliasesPicture.resize
Category Conversion
Label Resize a picture
Requires
Since

Parameters

Name Description Type Required Default value
maxHeight int yes  
maxWidth int yes  

Signature

Inputs blob, document
Outputs blob, blob

Implementation Information

Implementation Class Class: org.nuxeo.ecm.platform.picture.operation.PictureResize
Contributing Component org.nuxeo.ecm.platform.picture.operation

JSON Definition

{
  "id" : "Picture.Resize",
  "aliases" : [ "Picture.resize" ],
  "label" : "Resize a picture",
  "category" : "Conversion",
  "requires" : null,
  "description" : "Use conversion service to resize a picture contained in a Document or a Blob",
  "url" : "Picture.Resize",
  "signature" : [ "blob", "blob", "document", "blob" ],
  "params" : [ {
    "name" : "maxHeight",
    "description" : null,
    "type" : "int",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "maxWidth",
    "description" : null,
    "type" : "int",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}